﻿<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 
<link href="${ctx}/css/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/scripts/jquery-1.4.2.min.js"></script> 
<title>北京车辆段</title>
 <script type="text/javascript">
    $(function() {	       
		 $.get("${ctx}/notice/Notice/showAjax.do?id=<%=request.getParameter("id")%>",function(josn) {
           josn = josn.replace(new RegExp("null","gm"),'""');
           var mydata = eval("("+josn+")");
            
           document.getElementById("newtitile").innerHTML=mydata.title;
         
         
	          	           var temp_imgs = (mydata.imgpath).split(";");
	          	           for( var x = 0 ; x < temp_imgs.length-1; x++){
                                
	          	          document.getElementById("newcontent1").innerHTML='<img style="width:100%; height:100%;margin:0 auto;display:block;" src="${ctx}'+temp_imgs[x]+'">';
	          	           
	          	           }
	        
						document.getElementById("newcontent").innerHTML='<pre><p style="height:300;width:800">'+mydata.content+'</p></pre>';
           //document.getElementById("newcontent").innerHTML= content_;
        });
 });
</script>
</head>
<body> 

<div style="height:300;width:400" >
<div   style="height:300;width:400">
 <div  class="nr_title" style="height:300;width:400;margin-bottom: 20px;">
	<h2 id="newtitile" style="height:300;width:400;font-size:23px;" align="center"> </h2>
  
</div>
<div id="newcontent1"  style="margin-bottom: 20px;">

</div>
<div id="newcontent"  style="height:300;width:400" class="nr_wenzis">
	
</div>
 
<div class="clear"></div>
</div>
</div>

</body>
</html>